package com.qdl.rym.config;

/**
 * @Description: WebMvcConfigurerAdapter
 * @Author: ChenXueLi
 * @Date: 2019/3/19 19:13
 * 你是一段成熟的代码，要学会自己改bug
 */
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class VueWebAppConfig extends WebMvcConfigurerAdapter {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
        registry.addResourceHandler("/upload/**").addResourceLocations("file:C://upload/");
        super.addResourceHandlers(registry);
    }

}
